package com.imooc.service.impl;

import com.imooc.api.intercept.JWTCurrentUserInterceptor;
import com.imooc.base.BaseInfoProperties;
import com.imooc.mapper.ResumeMapper;
import com.imooc.pojo.Resume;
import com.imooc.pojo.Users;
import com.imooc.service.ResumeService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

/**
 * @author 啊昌
 * @date 2025/9/27 10:28
 * ResumeServiceImpl
 */
@Service
public class ResumeServiceImpl extends BaseInfoProperties implements ResumeService {

	@Autowired
	private ResumeMapper resumeMapper;

	@Override
	public void initResume(String userId) {
		Resume resume = new Resume();
		resume.setUserId(userId);
		resume.setCreateTime(LocalDateTime.now());
		resume.setUpdatedTime(LocalDateTime.now());

		resumeMapper.insert(resume);
	}
}
